osm.c: ikey is returned as int
authorBernd Zeimetz <bernd@bzed.de>
Wed, 7 Jan 2009 14:11:11 +0000 (15:11 +0100)
committerBernd Zeimetz <bernd@bzed.de>
Wed, 7 Jan 2009 14:11:11 +0000 (15:11 +0100)
Don't cast to char and back without a reason.

debian/patches/osm-char-int-cast-bug-fix [new file with mode: 0644]

diff --git a/debian/patches/osm-char-int-cast-bug-fix b/debian/patches/osm-char-int-cast-bug-fix
new file mode 100644 (file)
index 0000000..9191555
--- /dev/null
@@ -0,0 +1,24 @@
+osm.c: ikey is returned as int
+
+Don't cast to char and back without a reason.
+
+--- a/osm.c
++++ b/osm.c
+@@ -443,7 +443,7 @@ osm_features_init(void)
+ }
+-static char
++static int
+ osm_feature_ikey(const char *key)
+ {
+       int result;
+@@ -535,7 +535,7 @@ osm_node_tag(const char *args, const cha
+       const char **avp = &attrv[0];
+       const char *key = "", *value = "";
+       char *str;
+-      char ikey;
++      int ikey;
+       
+         while (*avp) {
+               if (strcmp(avp[0], "k") == 0)